From 6ae323094390eb849daa342c869a2958b8e31d3c Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Wed, 4 Nov 2015 11:48:24 +0100 Subject: [PATCH] xl: log an error if libxl_cpupool_destroy() fails In fact, right now, failing at destroying a cpupool is just not reported to the user in any explicit way. Let's log an error, as it is customary for xl in these cases. Signed-off-by: Dario Faggioli Reviewed-by: Juergen Gross Acked-by: Wei Liu --- tools/libxl/xl_cmdimpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 78048a1c72..03442e1d0a 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -7582,8 +7582,10 @@ int main_cpupooldestroy(int argc, char **argv) return EXIT_FAILURE; } - if (libxl_cpupool_destroy(ctx, poolid)) + if (libxl_cpupool_destroy(ctx, poolid)) { + fprintf(stderr, "Can't destroy cpupool '%s'\n", pool); return EXIT_FAILURE; + } return EXIT_SUCCESS; } -- 2.30.2